﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace YTSK.Model
{
    /// <summary>
    /// 主表视图
    /// </summary>
    public class Rdrecord_View
    {
        #region Model       
        /// <summary>
        /// ID
        /// </summary>
        public int ID { set; get; }
        /// <summary>
        /// 仓库ID
        /// </summary>
        public int IDWarehouse { set; get; }
        /// <summary>
        /// 入库出库标记：1-入库；0-出库
        /// </summary>
        public int bRdFlag { set; get; }
        /// <summary>
        /// 业务类型：01-采购；02-暂估入库；03-冲暂估；04-成品入库；09-其他入库；11-销售出库；12-材料出库；19-其他出库；
        /// </summary>
        public string cVouType { set; get; }
        /// <summary>
        /// 单据号
        /// </summary>
        public string cCode { set; get; }
        /// <summary>
        /// 单据日期
        /// </summary>
        public DateTime dDate { set; get; }
        /// <summary>
        /// 业务号
        /// </summary>
        public string cVouCode { set; get; }
        /// <summary>
        /// 供应商ID
        /// </summary>
        public int? IDVendor { set; get; }
        /// <summary>
        /// 客户ID
        /// </summary>
        public int IDCustomer { set; get; }
        /// <summary>
        /// 业务员名称
        /// </summary>
        public string cPerson { set; get; }
        /// <summary>
        /// 业务员电话
        /// </summary>
        public string cPersonMobile { set; get; }
        /// <summary>
        /// 备注
        /// </summary>
        public string cMemo { set; get; }
        /// <summary>
        /// 是否扫描
        /// </summary>
        public bool bScan { set; get; }
        /// <summary>
        /// 扫描日期
        /// </summary>
        public DateTime? dScanDate { set; get; }
        /// <summary>
        /// 扫描人
        /// </summary>
        public string cScanPeson { set; get; }
        /// <summary>
        /// 是否下载
        /// </summary>
        public bool bDownLoad { set; get; }
        /// <summary>
        /// 下载日期
        /// </summary>
        public DateTime? dDownLoadDate { set; get; }
        /// <summary>
        /// 下载人
        /// </summary>
        public string sDownLoadPerson { set; get; }
        /// <summary>
        /// 录入人
        /// </summary>
        public string cMaker { set; get; }
        /// <summary>
        /// 录入时间
        /// </summary>
        public DateTime? dMadeDate { set; get; }
        /// <summary>
        /// 修改人
        /// </summary>
        public string cModify { set; get; }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? dModiDate { set; get; }
        /// <summary>
        /// 审核人
        /// </summary>
        public string cVerify { set; get; }
        /// <summary>
        /// 审核时间
        /// </summary>
        public DateTime? dVeriDate { set; get; }
        /// <summary>
        /// 时间戳
        /// </summary>
        public byte[] ts { set; get; }
        /// <summary>
        /// 小票号
        /// </summary>
        public string cDefine1 { set; get; }
        /// <summary>
        /// 来源IP
        /// </summary>
        public string cFromIP { set; get; }
        /// <summary>
        /// 追踪ID
        /// </summary>
        public int? iTraceID { set; get; }
        /// <summary>
        /// 原始单据日期
        /// </summary>
        public DateTime? dDateOri { set; get; }
        /// <summary>
        /// 开票信息-税号
        /// </summary>
        public string TaxNo { set; get; }
        /// <summary>
        /// 开票信息-地址
        /// </summary>
        public string Address { set; get; }
        /// <summary>
        /// 开票信息-电话
        /// </summary>
        public string Phone { set; get; }
        /// <summary>
        /// 开票信息-银行
        /// </summary>
        public string Bank { set; get; }
        /// <summary>
        /// 开票信息-银行帐号
        /// </summary>
        public string BankAccount { set; get; }
        /// <summary>
        /// 对应ERP单据号
        /// </summary>
        public string ErpCode { set; get; }

        /// <summary>
        /// 发票日期
        /// </summary>
        public DateTime? dVouDate { set; get; }
        /// <summary>
        /// 发票类型:增值税专用发票/普通发票/电子发票/不开票
        /// </summary>
        public string cBillType { set; get; }

        /// <summary>
        /// 发票代码
        /// </summary>
        public string cVouCode1 { set; get; }

        /// <summary>
        /// 发票代码
        /// </summary>
        public string fpdm { set; get; }

        /// <summary>
        /// 发票代码
        /// </summary>
        public string fphm { set; get; }
        /// <summary>
        /// 单据类型-零售/分销
        /// </summary>
        public string cDefine2 { set; get; }

        /// <summary>
        /// 单据类型-零售/分销
        /// </summary>
        public string cDefine3 { set; get; }
        /// <summary>
        /// 门店
        /// </summary>
        public string cDefine4 { set; get; }
        /// <summary>
        /// 业务员
        /// </summary>
        public string cDefine5 { set; get; }
        /// <summary>
        /// 结算方式
        /// </summary>
        public string cSettleStyle { set; get; }
        /// <summary>
        /// 来源单据号码：如果没有，则cSource为库存
        /// </summary>
        public string cBusCode { set; get; }
        /// <summary>
        /// 单据类型：采购入库,销售出库,调拨入库,调拨出库,其他入库,其他出库,盘亏出库,盘盈入库
        /// </summary>
        public string cBusType { set; get; }
        /// <summary>
        /// 单据来源：库存-表示可以直接修改，盘点单/调拨单/生产单-只能在来源单据中修改，同时在cBusCode中写入来源的单据号；
        /// </summary>
        public string cSource { set; get; }
        /// <summary>
        /// 收发类别：
        /// </summary>
        public string cRdCode { set; get; }
        /// <summary>
        /// 发运方式
        /// </summary>
        public string cSCName { set; get; }
        /// <summary>
        /// 发运日期
        /// </summary>
        public DateTime? dDeliveryDate { set; get; }
        /// <summary>
        /// 自定义项0，深圳用于保存航天开票流水号
        /// </summary>
        public string cDf0 { set; get; }
        /// <summary>
        /// 
        /// </summary>
        public string cDf1 { set; get; }
        /// <summary>
        /// 
        /// </summary>
        public string cDf2 { set; get; }
        /// <summary>
        /// 
        /// </summary>
        public string cDf3 { set; get; }
        /// <summary>
        /// 
        /// </summary>
        public string cDf4 { set; get; }
        /// <summary>
        /// 
        /// </summary>
        public string cDf5 { set; get; }
        /// <summary>
        /// 
        /// </summary>
        public string cDf6 { set; get; }
        /// <summary>
        /// 
        /// </summary>
        public string cDf7 { set; get; }
        /// <summary>
        /// 
        /// </summary>
        public string cDf8 { set; get; }
        /// <summary>
        /// 
        /// </summary>
        public string cDf9 { set; get; }
        /// <summary>
        /// 
        /// </summary>
        public string cDf10 { set; get; }
        /// <summary>
        /// 
        /// </summary>
        public string cDf11 { set; get; }
        /// <summary>
        /// 
        /// </summary>
        public string cDf12 { set; get; }
        /// <summary>
        /// 
        /// </summary>
        public string cDf13 { set; get; }
        /// <summary>
        /// 
        /// </summary>
        public string cDf14 { set; get; }
        /// <summary>
        /// 
        /// </summary>
        public string cDf15 { set; get; }
        /// <summary>
        /// 
        /// </summary>
        public string cDf16 { set; get; }
        /// <summary>
        /// 
        /// </summary>
        public string cDf17 { set; get; }
        /// <summary>
        /// 
        /// </summary>
        public string cDf18 { set; get; }
        /// <summary>
        /// 
        /// </summary>
        public string cDf19 { set; get; }
        /// <summary>
        /// 
        /// </summary>
        public string cDf20 { set; get; }
        /// <summary>
        /// 
        /// </summary>
        public decimal? cDf21 { set; get; }
        /// <summary>
        /// 
        /// </summary>
        public decimal? cDf22 { set; get; }
        /// <summary>
        /// 
        /// </summary>
        public decimal? cDf23 { set; get; }
        /// <summary>
        /// 
        /// </summary>
        public decimal? cDf24 { set; get; }
        /// <summary>
        /// 
        /// </summary>
        public decimal? cDf25 { set; get; }
        /// <summary>
        /// 
        /// </summary>
        public int? cDf26 { set; get; }
        /// <summary>
        /// 
        /// </summary>
        public int? cDf27 { set; get; }
        /// <summary>
        /// 
        /// </summary>
        public DateTime? cDf28 { set; get; }
        /// <summary>
        /// 
        /// </summary>
        public DateTime? cDf29 { set; get; }
        /// <summary>
        /// 
        /// </summary>
        public DateTime? cDf30 { set; get; }
        /// <summary>
        /// 模板ID
        /// </summary>
        public string CardID { set; get; }
        /// <summary>
        /// 客户Email
        /// </summary>
        public string cPersonEmail { set; get; }
        /// <summary>
        /// 核销时间
        /// </summary>
        public DateTime? dHXDate { set; get; }
        /// <summary>
        /// 核销人
        /// </summary>
        public string cHXPeson { set; get; }
        /// <summary>
        /// 错误信息
        /// </summary>
        public string ErrMsg { set; get; }
        /// <summary>
        /// 发票状态：0-可以放弃审核；1-发票开具中；2-发票成功开具
        /// </summary>
        public int iFpStatus { set; get; }

        #endregion Model

        /// <summary>
        /// 客户名称
        /// </summary>
        public string cCusName { set; get; }
        /// <summary>
        /// 航天流水号
        /// </summary>
        public string cHTCode { set; get; }

        /// <summary>
        /// 仓库编码
        /// </summary>
        public string cWhCode { set; get; }
        /// <summary>
        /// 仓库名称
        /// </summary>
        public string cWhName { set; get; }
        /// <summary>
        /// 供应商编码
        /// </summary>
        public string cVenCode { set; get; }
        /// <summary>
        /// 供应商名称
        /// </summary>
        public string cVenName { set; get; }
        /// <summary>
        /// 公司对应的银商
        /// </summary>
        public string cWhDef1 { set; get; }
        /// <summary>
        /// 公司对应的银商
        /// </summary>
        public string cWhDef2 { set; get; }
        /// <summary>
        /// 用友账套号
        /// </summary>
        public string cWhDef3 { set; get; }
        /// 公司对应的航天税号
        /// </summary>
        public string cWhDef4 { set; get; }
        /// <summary>
        /// 公司对应的航天密钥
        /// </summary>
        public string cWhDef5 { set; get; }
        /// <summary>
        /// 云开票系统类型：航天/银商
        /// </summary>
        public string cWhDef6 { set; get; }
    }
}
